package com.xuan.yuapiinterface;

import com.xuan.yuapiclientsdk.client.YuApiClient;
import com.xuan.yuapiclientsdk.model.User;

public class Main {

    public static void main(String[] args) {

        YuApiClient client = new YuApiClient( "xauncc", "abcdefg");
        String result1 = client.getNameByGet("xuan1");
        System.out.println("result1: " + result1);
        String result2 = client.getNameByPost("xuan2");
        System.out.println("result2: " + result2);
        User user = new User();
        user.setName("xuan3");
        String result3 = client.getNameByJson(user);
        System.out.println("result3: " + result3);
    }
}
